<%@page import="com.mingrisoft.listener.UserInfoTrance"%>
<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.mingrisoft.listener.*" %>

<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <title>显示上线人数</title>  
    <%
 	UserInfoList list = UserInfoList.getInstance();
 	UserInfoTrance ut = new UserInfoTrance();
	String name = request.getParameter("user");
	ut.setUser(name);
	session.setAttribute("list",ut);
	list.addUserInfo(ut.getUser());
	session.setMaxInactiveInterval(10);
	%>      
 </head>
 <body>
<div align="center">
<table width="506" height="246" border="0" cellpadding="0" cellspacing="0" background="image/background2.jpg">
  <tr>
    <td align="center"><br>
 <textarea rows="8" cols="20">
<%
Vector vector=list.getList();
if(vector!=null&&vector.size()>0){
for(int i=0;i<vector.size();i++){
  out.println(vector.elementAt(i));
}
}
%>
</textarea><br><br>
 <a href="loginOut.jsp">返回</a>
 
 </td>
  </tr>
</table>
 </body>
</html>